<?php

class Mgame extends AppModel {

    var $alias = 'Mgame';
    var $name = 'Mgame';
    var $useTable = 'mgames';
    
    function download($game_id) {
        $conditions = array(
            '`Mgame`.`download_times`' => '`Mgame`.`download_times` + 1',
        );
        $this->updateAll($conditions, array('Mgame.id' => $game_id));
    }
}

?>
